PGMB\ParseFormFields D

Total Complexity 132
Dependencies 25
Dependents 4
Total lines 563
Lines of code 441
Logical lines of code 257
Comment lines 82
Methods 36
Properties 1

Methods 36

Method Rating Maintainability Complexity Lines of code
getLocalPost()
A
39 15 59
get_media_item()
A
54 10 18
maybe_generate_intermediate()
A
47 7 36
get_original_upload()
S
54 6 22
validate_wp_image_size()
S
54 5 21
original_upload_matches_gmb_requirements()
S
55 5 20
sanitize_location()
S
58 5 16
get_media_items()
S
61 5 12
getLocations()
S
62 5 11
convert_avif()
S
53 4 22
validate_image_props()
S
62 5 10
convert_image_if_needed()
S
65 5 8
sanitize()
S
59 4 15
generate_placeholder_variables()
S
53 3 23
convert_avif_with_imagick()
S
58 3 15
is_image_webp_or_avif()
S
76 4 3
get_file_size_from_download()
S
62 3 12
get_link_parsing_mode()
S
62 3 12
get_local_file_size()
S
64 3 11
get_remote_file_size()
S
65 3 11
get_file_size_from_headers()
S
68 3 7
get_summary()
S
70 3 6
convert_webp()
S
58 2 14
__construct()
S
71 2 6
is_remote_mime_webp()
S
74 2 4
validate_external_image_size()
S
64 2 9
is_remote_mime_avif()
S
74 2 4
ensure_absolute_url()
S
68 2 7
is_url_relative()
S
77 2 3
get_content_image()
S
68 2 7
is_repost()
S
78 2 3
get_file_size_from_path()
S
80 1 3
getPublishDateTime()
S
82 1 3
get_topic_type()
S
80 1 3
validate()
S
91 1 2
parse_placeholder_variables()
S
78 1 3